namespace Abp.Dependency
{
    /// <summary>
    /// Lifestyles of types used in dependency injection system.
    /// 用于依赖注入系统的生命周期类型。
    /// </summary>
    public enum DependencyLifeStyle
    {
        /// <summary>
        /// Singleton object. Created a single object on first resolving
        /// and same instance is used for subsequent resolves.
        /// 单例对象。在首次解析时创建一个唯一的对象，在后序的解析中将使用相同的实例。
        /// </summary>
        Singleton,

        /// <summary>
        /// Transient object. Created one object for every resolving.
        /// 瞬时对象。每次解析时创建一个对象。
        /// </summary>
        Transient
    }
}